package cn.chencaiju.day04;

import org.junit.Test;

public class TestBoss {
	@Test public void testPay() {
		Employee e=new Programmer(0.88);
		e.setSalaey(10000);
		Boss b=new Boss();
		b.pay(e);
	}
	@Test public void testInstanceof() {
		Employee p=new Programmer(0.88);
		p.setSalaey(10000);
		Employee d=new Designer(0.99);
		d.setSalaey(10000);
		Boss b=new Boss();
		b.pay(p);
		b.pay(d);
		
	}

}
